# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=clapper
pkgver=0.5.2
pkgrel=1
pkgdesc="A GNOME media player built using GJS with GTK4 toolkit and powered by GStreamer with OpenGL rendering"
url="https://github.com/Rafostar/clapper"
arch="all !s390x !armhf" # no gjs
license="GPL-3.0-or-later"
depends="
	gjs
	hicolor-icon-theme
	"
makedepends="
	gjs-dev
	gst-plugins-base-dev
	gstreamer-dev
	gtk4.0-dev
	meson
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/Rafostar/clapper/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests
ldpath="/usr/lib/gstreamer-1.0/"

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
46934a6e1224e88338e85154bbc489dcd006887863fcdc880fa631e5573afa48de32c23fa0bcc9b2206f324e51b6f071d250b340c41a450e9d0c497863feacbf  clapper-0.5.2.tar.gz
"
